﻿using System.Collections.Generic;
using System.Linq;
using TeamCityMonitor.Models;

namespace TeamCityMonitor.Repository
{
    public interface INotificationRepository
    {
        IEnumerable<Notification> GetAllNotifications();
    }

    public class NotificationRepository : INotificationRepository
    {
        private StorageContext db = new StorageContext();

        public IEnumerable<Notification> GetAllNotifications()
        {
            return db.Notification.ToList();
        }
    }
}